package proxy.a2_jdkproxy;

import org.junit.Test;
import proxy.a2_jdkproxy.reflect.JDKProxy;
import proxy.a2_jdkproxy.service.IUserService;
import proxy.a2_jdkproxy.util.ClassLoaderUtils;

public class JDKproxyTest2 {

	@Test
	public void test() throws ClassNotFoundException {


		IUserService userService = (IUserService) JDKProxy.getProxy(ClassLoaderUtils.forName(
				"proxy.a2_jdkproxy.service.IUserService"));
		userService.queryName(5);
	}

}
